package com.lkbaby.observer;

public class AdminUser implements ProductObserver {

	private String name;

	public AdminUser(String name) {
		this.name = name;
	}

	@Override
	public void onPublished(Product product) {
		System.out.println("send to admin[" + name + "] on product published: " + product);
	}

	@Override
	public void onPriceChanged(Product product) {
		System.out.println("send to admin[" + name + "] on product Price Changed: " + product);
	}

}
